package com.woniu.springbootshiro.controller;

import com.woniu.springbootshiro.pojo.Area;
import com.woniu.springbootshiro.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class AreaController {
    @Autowired
    private AreaService as;

    @RequestMapping("/queryAreaName")
    @ResponseBody
    public List<Area> queryAll(){

        return as.quertAll();
    }

}
